var region = require('../model/region');

exports.selectPro = function(req, res, connection) {
	region.selectPro(connection, function(data) {
		res.send(data);
	});
};
exports.selectCityByProId = function(req, res, connection) {
	var id = req.params['id'];
	region.selectCityByProId(connection, id, function(data) {
		res.send(data);
	});
};
exports.selectCities = function(req, res, connection) {
	region.selectCities(connection, function(data) {
		res.send(data);
	});
};
exports.selectProByCityName = function(req, res, connection) {
	var city = req.params['city'];
	region.selectProByCityName(connection, city, function(data) {
		res.send(data);
	});
};